using System;
using System.Web;
using System.Web.Services;
using System.Web.Services.Protocols;

namespace DD.Products
{
    public class Product
    {
        private bool active;
        private double cost;
        private int id;
        private string name;
        private bool onsale;
        private double price;
        private double saleprice;
        private DD.Products.ProductType type;
        private string description;
        /// <summary>
        /// Name of Product
        /// </summary>
        public String Name
        {
            get
            {
                return name;
            }
            set
            {
                name = value;
            }
        }

        /// <summary>
        /// Unique Product ID
        /// </summary>
        public int ID
        {
            get
            {
                return id;
            }
            set
            {
                id = value;
            }
        }

        /// <summary>
        /// Product Type
        /// </summary>
        public DD.Products.ProductType Type
        {
            get
            {
                return type;
            }
            set
            {
                type = value;
            }
        }

        /// <summary>
        /// Retail Price
        /// </summary>
        public Double Price
        {
            get
            {
                return price;
            }
            set
            {
                price = value;
            }
        }

        /// <summary>
        /// Our Cost
        /// </summary>
        public double Cost
        {
            get
            {
                return cost;
            }
            set
            {
                cost = value;
            }
        }

        /// <summary>
        /// Sale Price
        /// </summary>
        public double SalePrice
        {
            get
            {
                return saleprice;
            }
            set
            {
                saleprice = value;
            }
        }

        /// <summary>
        /// Is Product on sale
        /// </summary>
        public bool OnSale
        {
            get
            {
                return onsale;
            }
            set
            {
                onsale = value;
            }
        }

        /// <summary>
        /// Is product active in store
        /// </summary>
        public bool Active
        {
            get
            {
                return active;
            }
            set
            {
                active = value;
            }
        }

        /// <summary>
        /// Description of Product
        /// </summary>
        public string Description
        {
            get
            {
                return description;
            }
            set
            {
                description = value;
            }
        }
    }

}